<template>
  <div class="progress">
    <div class="progressLine"></div>
    <div class="progressBg">
      <div class="progressBtn"></div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ProgressLine',
}
</script>

<style lang='less' scoped>
.progress{
  position: relative;
  width: 100%;
  height: 4px;
  padding: 4px 0;
  border-radius: 2px;
  cursor: pointer;
  .progressLine{
    width: 100%;
    height: 4px;
    background: violet;
    border-radius: 2px;
  }
  .progressBg{
    position: absolute;
    top: 4px;
    left: 0px;
    height: 4px;
    width: 100%;
    border-radius: 2px;
    background: linear-gradient(to right, rgba(116, 185, 6, 0.5)0%, rgba(71, 211, 188, 1)10%, rgba(71, 211, 188, 1)30%, rgba(71, 211, 188, 1)60%, rgba(10, 211, 188, 1)80%, rgba(71, 211, 188, 1)100%);
    .progressBtn{
      position: absolute;
      top: -4px;
      right: 1px;
      width: 4px;
      height: 4px;
      border: 4px solid rgb(240, 7, 162);
      /* background: rgb(240, 7, 162); */
      border-radius: 50%;
      cursor: grab;
    }
  }
}
</style>
